<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title>活动集锦</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<!--标准mui.css-->
		<link rel="stylesheet" href="css/mui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="css/app.css" />
		<style type="text/css">
			body {
				background: #F2F2F2;
			}
			#app{
				padding-top: 44px;
			}
			.top {
				width: 100%;
				height: 21.9rem;
				background: #fff;
				padding: 0.8rem 1.8rem 2rem;
			}
			.middle {
				margin-bottom: 5rem;
			}
			.mui-slider {
				height: 13.5rem;
			}
			.content-list {
				padding-top: 1.3rem;
				/* padding-bottom: 1.2rem; */
				width: 100%;
				background: #fff;
				margin-top: 1.2rem;
			}
			.content-list::after {
				content: '';
				clear: both;
				display: block;
			}
			.content-list-title {
				font-size: 1.6rem;
				font-family: PingFang SC;
				font-weight: 600;
				line-height: 1.6rem;
				color: #333333;
				padding-left: 4.8rem;
				position: relative;
				border-bottom: 0.1rem solid #E3E3E3;
				padding-bottom: 1.2rem;
			}
			.content-list-title a {
				font-size: 1.2rem;
				font-family: PingFang SC;
				font-weight: 400;
				color: #999999;
				float: right;
				margin-right: 1.8rem;
			}
			.content-list-title::before {
				content: '';
				display: inline-block;
				width: 2rem;
				height: 2rem;
				position: absolute;
				left: 1.8rem;
				top: 50%;
				margin-top: -1.5rem;
			}
			.title-first::before {
				background: url(images/title01.png) no-repeat;
				background-size: 100% 100%;
			}
			.title-second::before {
				background: url(images/title02.png) no-repeat;
				background-size: 100% 100%;
			}
			.title-third::before {
				background: url(images/title03.png) no-repeat;
				background-size: 100% 100%;
			}
			.title-forth::before {
				background: url(images/title04.png) no-repeat;
				background-size: 100% 100%;
			}
			.newFile .content-list-area {
				padding: 1.8rem 1.8rem 0;
			}
			.newFile .list {
				width: 49%;
				height: 14.4rem;
				float: left;
				margin-bottom: 2.1rem;
			}
			.newFile .list img {
				width: 100%;
				height: 9.5rem;
			}
			.newFile .list h3 {
				width: 100%;
				font-size: 1.4rem;
				font-family: PingFangSC;
				font-weight: 400;
				color: #333333;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
			}
			.newFile .content-list-area .list:nth-child(2n) {
				margin-left: 2%;
			}
			.takebyHand .content-list-area .list {
				display: flex;
				justify-content: space-around;
				padding: 1.4rem 1.8rem 1.1rem;
				border-bottom: 0.1rem solid #E2E2E2;
			}
			.takebyHand .content-list-area .list:last-child {
				border-bottom: none;
			}
			.takebyHand .content-list-area .list .word {
				width: 21rem;
			}
			.takebyHand .content-list-area .list h3 {
				font-size: 1.5rem;
				font-family: PingFangSC;
				font-weight: 400;
				color: #333333;
				height: 4rem;
				line-height: 2rem;
				display: -webkit-box;
				overflow: hidden;
				text-overflow: ellipsis;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				white-space: normal;
			}
			.takebyHand .content-list-area .list p {
				font-size: 1.2rem;
				font-family: PingFangSC;
				font-weight: 400;
				line-height: 1.6rem;
				color: #999999;
			}
			.takebyHand .content-list-area .list .picture img {
				width: 11.1rem;
				height: 7rem;
			}
			.peixun .content-list-area .list .list-area {
				padding: 2rem 1.8rem 1.3rem;
				border-bottom: 0.1rem solid #E2E2E2;
			}
			.peixun .content-list-area .list .user {
				font-size: 1.6rem;
				font-family: PingFangSC;
				font-weight: 400;
				color: #666666;
			}
			.peixun .content-list-area .list .user img {
				width: 3rem;
				height: 3rem;
				vertical-align: middle;
				margin-right: 1rem;
			}
			.peixun .content-list-area .list h3 {
				font-size: 1.7rem;
				font-family: PingFangSC;
				font-weight: 400;
				color: #333333;
				height: 4rem;
				line-height: 2rem;
				display: -webkit-box;
				overflow: hidden;
				text-overflow: ellipsis;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				white-space: normal;
			}
			.peixun .content-list-area .list .pictures img {
				width: 32%;
				height: 10.9rem;
			}
			.peixun .content-list-area .list .operate {
				width: 100%;
				height: 4.3rem;
				display: flex;
				justify-content: space-around;
				align-items: center;
				font-size: 1.2rem;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;
			}
			.peixun .content-list-area .list .orangeWords {
				color: #FC6A02;
			}
			.peixun .content-list-area .list .operate img {
				width: 1.5rem;
				height: 1.5rem;
				vertical-align: middle;
				margin-right: 0.1rem;
			}
			.peixun .content-list-area .list .operate .operate-list {
				width: 50%;
				text-align: center;
				position: relative;
			}
			.peixun .content-list-area .list .operate .operate-list:first-child::after {
				content: '';
				display: inline-block;
				width: 0.1rem;
				height: 1.8rem;
				background: #E3E3E3;
				position: absolute;
				right: 0;
				top: 50%;
				margin-top: -0.9rem;
			}
			.activityCenter .content-list-area .list {
				padding: 1.8rem;
				border-bottom: 0.1rem solid #E2E2E2;
			}
			.activityCenter .content-list-area .list:last-child {
				border-bottom: none;
			}
			.activityCenter .content-list-area .list img {
				width: 100%;
				/* height: 13.5rem; */
				max-height: 25.1rem;
			}
			.activityCenter .content-list-area .list p {
				font-size: 1.7rem;
				font-family: PingFangSC;
				font-weight: 400;
				color: #333333;
				margin-top: 10px;
			}
			
			/* 图片预览代码 */
			.mui-preview-image.mui-fullscreen {
				position: fixed;
				z-index: 20;
				background-color: #000;
				height: auto;
			}
			.mui-preview-header,
			.mui-preview-footer {
				position: absolute;
				width: 100%;
				left: 0;
				z-index: 10;
			}
			.mui-preview-header {
				height: 44px;
				top: 0;
			}
			.mui-preview-footer {
				height: 50px;
				bottom: 0px;
			}
			.mui-preview-header .mui-preview-indicator {
				display: block;
				line-height: 25px;
				color: #fff;
				text-align: center;
				margin: 15px auto 4;
				width: 70px;
				background-color: rgba(0, 0, 0, 0.4);
				border-radius: 12px;
				font-size: 16px;
			}
			.mui-preview-image {
				display: none;
				-webkit-animation-duration: 0.5s;
				animation-duration: 0.5s;
				-webkit-animation-fill-mode: both;
				animation-fill-mode: both;
			}
			.mui-preview-image.mui-preview-in {
				-webkit-animation-name: fadeIn;
				animation-name: fadeIn;
			}
			.mui-preview-image.mui-preview-out {
				background: none;
				-webkit-animation-name: fadeOut;
				animation-name: fadeOut;
			}
			.mui-preview-image.mui-preview-out .mui-preview-header,
			.mui-preview-image.mui-preview-out .mui-preview-footer {
				display: none;
			}
			.mui-zoom-scroller {
				position: absolute;
				display: -webkit-box;
				display: -webkit-flex;
				display: flex;
				-webkit-box-align: center;
				-webkit-align-items: center;
				align-items: center;
				-webkit-box-pack: center;
				-webkit-justify-content: center;
				justify-content: center;
				left: 0;
				right: 0;
				bottom: 0;
				top: 0;
				width: 100%;
				height: 100%;
				margin: 0;
				-webkit-backface-visibility: hidden;
			}
			.mui-zoom {
				-webkit-transform-style: preserve-3d;
				transform-style: preserve-3d;
			}
			.mui-slider .mui-slider-group .mui-slider-item img {
				width: auto;
				height: auto;
				max-width: 100%;
				max-height: 100%;
			}
			.mui-android-4-1 .mui-slider .mui-slider-group .mui-slider-item img {
				width: 100%;
			}
			.mui-android-4-1 .mui-slider.mui-preview-image .mui-slider-group .mui-slider-item {
				display: inline-table;
			}
			.mui-android-4-1 .mui-slider.mui-preview-image .mui-zoom-scroller img {
				display: table-cell;
				vertical-align: middle;
			}
			.mui-preview-loading {
				position: absolute;
				width: 100%;
				height: 100%;
				top: 0;
				left: 0;
				display: none;
			}
			.mui-preview-loading.mui-active {
				display: block;
			}
			.mui-preview-loading .mui-spinner-white {
				position: absolute;
				top: 50%;
				left: 50%;
				margin-left: -25px;
				margin-top: -25px;
				height: 50px;
				width: 50px;
			}
			.mui-preview-image img.mui-transitioning {
				-webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
				transition: transform 0.5s ease, opacity 0.5s ease;
			}
			@-webkit-keyframes fadeIn {
				0% {
					opacity: 0;
				}
				100% {
					opacity: 1;
				}
			}
			@keyframes fadeIn {
				0% {
					opacity: 0;
				}
				100% {
					opacity: 1;
				}
			}
			@-webkit-keyframes fadeOut {
				0% {
					opacity: 1;
				}
				100% {
					opacity: 0;
				}
			}
			@keyframes fadeOut {
				0% {
					opacity: 1;
				}
				100% {
					opacity: 0;
				}
			}
			p img {
				max-width: 100%;
				height: auto;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-closeempty mui-pull-left"></a>
			<h1 class="mui-title">活动集锦</h1>
		</header>
		<div id="app">
			<div class="middle">
				<div class="content-list activityCenter">
					<div class="content-list-area">
						<div class="list" v-for="item in list4" @click="goActiveDetail(item)">
							<img :src="it" v-for="it,inx in item.images" data-preview-src="" :data-preview-group="item.id" v-if="inx < 1" >
							<p>{{item.title}}</p>
						</div>
					</div>
				</div>
				
			</div>
		</div>
		<nav class="mui-bar mui-bar-tab bottom-tab">
			<a class="mui-tab-item" href="index.html">
				<span class="mui-icon"><img src="images/tabbar_01.png" ></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item" href="list_02.html">
				<span class="mui-icon"><img src="images/tabbar_02.png" ></span>
				<span class="mui-tab-label">随手拍</span>
			</a>
			<a class="mui-tab-item" href="my.html">
				<span class="mui-icon"><img src="images/tabbar_03.png" ></span>
				<span class="mui-tab-label">个人中心</span>
			</a>
		</nav>
		<script src="js/mui.js"></script>
		<script src="js/vue.js"></script>
		<script src="js/mui.zoom.js"></script>
		<script src="js/mui.previewimage.js"></script>
		<script type="text/javascript">
			
			var app = new Vue({
				el: '#app',
				data: {
					originNews: [],
					handPhotos: [],
					group:[],
					keyword:"",
					list3:[],
					list4:[],
					baseUrl:baseUrl,
					bannerlist:[],
				},
				methods: {
					goActiveDetail:function(item,newType){
						mui.openWindow("active_detail.html?id=" + item.id)
					},
					//  获取活动集锦
					getList4() {
						var that = this;
						var params = {
							type: 4,
							keyword: this.keyword
						}
						$get("/api/news/getactivitylist", params, function(res) {
							that.list4 = res;
						})
					},
				},
				created: function() {
					
				},
				mounted: function() {
					mui.init()
					this.getList4()
					mui.previewImage();
				}
			})
		</script>
	</body>

</html>
